package com.bruce.demo2.patterns.demo3.behavioral.demo14.strategy;

/**
 * @PROJECT_NAME: design_patterns
 * @DESCRIPTION: 环境角色：用于连接上下文，即把促销推销给客户，这里可以理解为销售员
 * @AUTHOR: CNBruceLee
 * @DATE: 2021/8/29 20:32
 */
public class SaleMan {
    private Strategy strategy;

    public Strategy getStrategy() {
        return strategy;
    }

    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }

    /**
     * 向客户展示促销活动
     */
    public void salesManShow() {
        this.strategy.show();
    }
}
